#pragma once
#include <grpcpp/grpcpp.h>
#include "const.h"
#include "proto/message.grpc.pb.h"
#include <atomic>

class ChatServiceImpl final: public message::ChatService::Service
{
public:
	ChatServiceImpl();
	grpc::Status NotifyAddFriend(grpc::ServerContext* context, const message::AddFriendReq* req, message::AddFriendRsp* rsp) override;
	grpc::Status NotifyAuthFriend(grpc::ServerContext* context, const message::AuthFriendReq* req, message::AuthFriendRsp* rsp) override;
	grpc::Status NotifyTextChatMsg(grpc::ServerContext* context, const message::TextChatMsgReq* request, message::TextChatMsgRsp* rsp) override;
	bool GetBaseInfo(std::string base_key, int uid, std::shared_ptr<UserInfo>& info);
private:
	
};

